<<<<<<< HEAD
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/26
 * Time: 15:15
 */

namespace app\index\model;


class ProductInfo extends Base
{
    protected $table = 'sy_product_info';

    public function product()
    {
        return $this->belongsTo('Product', 'product_id', 'id');
    }

    public function img()
    {
        return $this->belongsTo('Image', 'img_id', 'id');
    }
    
    public function user()
    {
        return $this->belongsTo('User', 'uid', 'id');
    }
=======
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/26
 * Time: 15:15
 */

namespace app\index\model;


class ProductInfo extends Base
{
    protected $table = 'sy_product_info';

    public function product()
    {
        return $this->belongsTo('Product', 'product_id', 'id');
    }

    public function img()
    {
        return $this->belongsTo('Image', 'img_id', 'id');
    }
    
    public function user()
    {
        return $this->belongsTo('User', 'uid', 'id');
    }
>>>>>>> 93c40d8086b7a8d5a9aa3548fdc8eb06a4272cf7
}